Integrand size = 33, antiderivative size = 140 \[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {2 C \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \sin (c+d x)}{d (3+2 n)}-\frac {2 (C+2 C n+A (3+2 n)) \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+2 n) (3+2 n) \sqrt {\sin ^2(c+d x)}} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {20, 3093, 2722} \[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {2 C \sin (c+d x) \sqrt {\cos (c+d x)} (b \cos (c+d x))^n}{d (2 n+3)}-\frac {2 (A (2 n+3)+2 C n+C) \sin (c+d x) \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (2 n+1),\frac {1}{4} (2 n+5),\cos ^2(c+d x)\right )}{d (2 n+1) (2 n+3) \sqrt {\sin ^2(c+d x)}} \]
[In]
[Out]
Rule 20
Rule 2722
Rule 3093
Rubi steps \begin{align*} \text {integral}& = \left (\cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {1}{2}+n}(c+d x) \left (A+C \cos ^2(c+d x)\right ) \, dx \\ & = \frac {2 C \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \sin (c+d x)}{d (3+2 n)}+\frac {\left (\left (C \left (\frac {1}{2}+n\right )+A \left (\frac {3}{2}+n\right )\right ) \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {1}{2}+n}(c+d x) \, dx}{\frac {3}{2}+n} \\ & = \frac {2 C \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \sin (c+d x)}{d (3+2 n)}-\frac {2 (C+2 C n+A (3+2 n)) \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+2 n) (3+2 n) \sqrt {\sin ^2(c+d x)}} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00 \[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=-\frac {2 \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \csc (c+d x) \left (A (5+2 n) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right )+C (1+2 n) \cos ^2(c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (5+2 n),\frac {1}{4} (9+2 n),\cos ^2(c+d x)\right )\right ) \sqrt {\sin ^2(c+d x)}}{d (1+2 n) (5+2 n)} \]
[In]
[Out]
\[\int \frac {\left (\cos \left (d x +c \right ) b \right )^{n} \left (A +C \left (\cos ^{2}\left (d x +c \right )\right )\right )}{\sqrt {\cos \left (d x +c \right )}}d x\]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int \frac {\left (b \cos {\left (c + d x \right )}\right )^{n} \left (A + C \cos ^{2}{\left (c + d x \right )}\right )}{\sqrt {\cos {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^n \left (A+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int \frac {\left (C\,{\cos \left (c+d\,x\right )}^2+A\right )\,{\left (b\,\cos \left (c+d\,x\right )\right )}^n}{\sqrt {\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]